package com.wanhe.base.model.holder;


import com.wanhe.base.model.disgn.DSFile;
import java.util.HashMap;

/**
 * File Name:FileHolder.java<br/>
 * Package Name:com.wanhe.base.model.holder<br/>
 * Date:2017/7/10 15:59<br/>
 * author:chendeji<br/>
 * desc: 设计器文件缓存<br/>
 * Copyright (c) 2017/7/10, 781571323@qq.com All Rights Reserved.
 *
 */
public class FileHolder extends HashMap<Integer, DSFile> {
    private static FileHolder ourInstance;

    public synchronized static FileHolder getInstance() {
        if (ourInstance == null){
            ourInstance = new FileHolder();
        }
        return ourInstance;
    }

    private FileHolder() {
    }

    public void release() {
        ourInstance.clear();
        ourInstance = null;
    }
}
